package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.MemberMsgTpl;

import java.util.List;

@DBMapper
public interface MemberMsgTplMapper {
    int deleteByPrimaryKey(String mmtCode);

    int insert(MemberMsgTpl record);

    int insertSelective(MemberMsgTpl record);

    MemberMsgTpl selectByPrimaryKey(String mmtCode);

    int updateByPrimaryKeySelective(MemberMsgTpl record);

    int updateByPrimaryKeyWithBLOBs(MemberMsgTpl record);

    int updateByPrimaryKey(MemberMsgTpl record);

    /**
     * 根据条件查询用户消息模板
     * @param memberMsgTpl
     * @return
     */
    List<MemberMsgTpl> findMemberMsgTplByConditon(MemberMsgTpl memberMsgTpl);

    int checkMmtCode(String mmtCode);
}